package com.lyf.lottery.common;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.lyf.common.api.IErrorCode;

import java.util.HashMap;

/**
 * 枚举了一些常用API操作码
 * @author lyf95
 */
public enum LotteryResultCode implements IErrorCode {
    DATA_NOT_EXIST(200001, "数据不存在"),
    PROBABILITY_GTE_ONE(200002, "总概率不能大于1"),
    ACTIVITY_NOT_EXIST(200003, "活动积极筹备中，敬请期待"),
    CURRENT_TIME_IS_NOT_ACTIVE_TIME(200004, "当前时间不在活动时间范围内"),
    BLIND_BOX_NUM_ERROR(200005, "活动暂未配置盲盒"),


    ;

    private Integer code;
    private String msg;


    LotteryResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}
